package mobi.hami.huapin.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CreateNoteAuditExample {
    /**
     * create_note_audit
     */
    protected String orderByClause;

    /**
     * create_note_audit
     */
    protected boolean distinct;

    /**
     * create_note_audit
     */
    protected List<Criteria> oredCriteria;

    public CreateNoteAuditExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * create_note_audit 2018-09-13
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andComtentIsNull() {
            addCriterion("comtent is null");
            return (Criteria) this;
        }

        public Criteria andComtentIsNotNull() {
            addCriterion("comtent is not null");
            return (Criteria) this;
        }

        public Criteria andComtentEqualTo(String value) {
            addCriterion("comtent =", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentNotEqualTo(String value) {
            addCriterion("comtent <>", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentGreaterThan(String value) {
            addCriterion("comtent >", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentGreaterThanOrEqualTo(String value) {
            addCriterion("comtent >=", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentLessThan(String value) {
            addCriterion("comtent <", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentLessThanOrEqualTo(String value) {
            addCriterion("comtent <=", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentLike(String value) {
            addCriterion("comtent like", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentNotLike(String value) {
            addCriterion("comtent not like", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentIn(List<String> values) {
            addCriterion("comtent in", values, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentNotIn(List<String> values) {
            addCriterion("comtent not in", values, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentBetween(String value1, String value2) {
            addCriterion("comtent between", value1, value2, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentNotBetween(String value1, String value2) {
            addCriterion("comtent not between", value1, value2, "comtent");
            return (Criteria) this;
        }

        public Criteria andUser_idIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUser_idIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUser_idEqualTo(Integer value) {
            addCriterion("user_id =", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idGreaterThan(Integer value) {
            addCriterion("user_id >", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idLessThan(Integer value) {
            addCriterion("user_id <", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idIn(List<Integer> values) {
            addCriterion("user_id in", values, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "user_id");
            return (Criteria) this;
        }

        public Criteria andCreate_timeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreate_timeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreate_timeEqualTo(Date value) {
            addCriterion("create_time =", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeGreaterThan(Date value) {
            addCriterion("create_time >", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeLessThan(Date value) {
            addCriterion("create_time <", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeIn(List<Date> values) {
            addCriterion("create_time in", values, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "create_time");
            return (Criteria) this;
        }

        public Criteria andCreate_timeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "create_time");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idIsNull() {
            addCriterion("audit_user_id is null");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idIsNotNull() {
            addCriterion("audit_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idEqualTo(Integer value) {
            addCriterion("audit_user_id =", value, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idNotEqualTo(Integer value) {
            addCriterion("audit_user_id <>", value, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idGreaterThan(Integer value) {
            addCriterion("audit_user_id >", value, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("audit_user_id >=", value, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idLessThan(Integer value) {
            addCriterion("audit_user_id <", value, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idLessThanOrEqualTo(Integer value) {
            addCriterion("audit_user_id <=", value, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idIn(List<Integer> values) {
            addCriterion("audit_user_id in", values, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idNotIn(List<Integer> values) {
            addCriterion("audit_user_id not in", values, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idBetween(Integer value1, Integer value2) {
            addCriterion("audit_user_id between", value1, value2, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_user_idNotBetween(Integer value1, Integer value2) {
            addCriterion("audit_user_id not between", value1, value2, "audit_user_id");
            return (Criteria) this;
        }

        public Criteria andAudit_timeIsNull() {
            addCriterion("audit_time is null");
            return (Criteria) this;
        }

        public Criteria andAudit_timeIsNotNull() {
            addCriterion("audit_time is not null");
            return (Criteria) this;
        }

        public Criteria andAudit_timeEqualTo(Date value) {
            addCriterion("audit_time =", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeNotEqualTo(Date value) {
            addCriterion("audit_time <>", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeGreaterThan(Date value) {
            addCriterion("audit_time >", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("audit_time >=", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeLessThan(Date value) {
            addCriterion("audit_time <", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeLessThanOrEqualTo(Date value) {
            addCriterion("audit_time <=", value, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeIn(List<Date> values) {
            addCriterion("audit_time in", values, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeNotIn(List<Date> values) {
            addCriterion("audit_time not in", values, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeBetween(Date value1, Date value2) {
            addCriterion("audit_time between", value1, value2, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_timeNotBetween(Date value1, Date value2) {
            addCriterion("audit_time not between", value1, value2, "audit_time");
            return (Criteria) this;
        }

        public Criteria andAudit_commentIsNull() {
            addCriterion("audit_comment is null");
            return (Criteria) this;
        }

        public Criteria andAudit_commentIsNotNull() {
            addCriterion("audit_comment is not null");
            return (Criteria) this;
        }

        public Criteria andAudit_commentEqualTo(String value) {
            addCriterion("audit_comment =", value, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentNotEqualTo(String value) {
            addCriterion("audit_comment <>", value, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentGreaterThan(String value) {
            addCriterion("audit_comment >", value, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentGreaterThanOrEqualTo(String value) {
            addCriterion("audit_comment >=", value, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentLessThan(String value) {
            addCriterion("audit_comment <", value, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentLessThanOrEqualTo(String value) {
            addCriterion("audit_comment <=", value, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentLike(String value) {
            addCriterion("audit_comment like", value, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentNotLike(String value) {
            addCriterion("audit_comment not like", value, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentIn(List<String> values) {
            addCriterion("audit_comment in", values, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentNotIn(List<String> values) {
            addCriterion("audit_comment not in", values, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentBetween(String value1, String value2) {
            addCriterion("audit_comment between", value1, value2, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andAudit_commentNotBetween(String value1, String value2) {
            addCriterion("audit_comment not between", value1, value2, "audit_comment");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andUser_address_idIsNull() {
            addCriterion("user_address_id is null");
            return (Criteria) this;
        }

        public Criteria andUser_address_idIsNotNull() {
            addCriterion("user_address_id is not null");
            return (Criteria) this;
        }

        public Criteria andUser_address_idEqualTo(Long value) {
            addCriterion("user_address_id =", value, "user_address_id");
            return (Criteria) this;
        }

        public Criteria andUser_address_idNotEqualTo(Long value) {
            addCriterion("user_address_id <>", value, "user_address_id");
            return (Criteria) this;
        }

        public Criteria andUser_address_idGreaterThan(Long value) {
            addCriterion("user_address_id >", value, "user_address_id");
            return (Criteria) this;
        }

        public Criteria andUser_address_idGreaterThanOrEqualTo(Long value) {
            addCriterion("user_address_id >=", value, "user_address_id");
            return (Criteria) this;
        }

        public Criteria andUser_address_idLessThan(Long value) {
            addCriterion("user_address_id <", value, "user_address_id");
            return (Criteria) this;
        }

        public Criteria andUser_address_idLessThanOrEqualTo(Long value) {
            addCriterion("user_address_id <=", value, "user_address_id");
            return (Criteria) this;
        }

        public Criteria andUser_address_idIn(List<Long> values) {
            addCriterion("user_address_id in", values, "user_address_id");
            return (Criteria) this;
        }

        public Criteria andUser_address_idNotIn(List<Long> values) {
            addCriterion("user_address_id not in", values, "user_address_id");
            return (Criteria) this;
        }

        public Criteria andUser_address_idBetween(Long value1, Long value2) {
            addCriterion("user_address_id between", value1, value2, "user_address_id");
            return (Criteria) this;
        }

        public Criteria andUser_address_idNotBetween(Long value1, Long value2) {
            addCriterion("user_address_id not between", value1, value2, "user_address_id");
            return (Criteria) this;
        }
    }

    /**
     * create_note_audit
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * create_note_audit 2018-09-13
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}